<template>
    <div>
		<div class="graybg"></div>
		<div class="header header_bg">
  			<div class="header_left">
  				<i class="iconfont baiColor" @click="enter">&#xe612;</i>
  			</div>
  			<div class="header_center">
  				<span class="baiColor">支付成功</span>
  			</div>
  			<div class="header_right">
  				<em class="baiColor" @click="enter">完成</em>
  			</div>
  		</div>
  		<div class="center" style="padding-top: 95px;">
  			<div class="iconfont">&#xe66e;</div>
  			<p class="ing">支付完成</p>
  			<p class="tele">
  				恭喜你成为{{rank}}
  			</p>
  		</div>
    </div>

</template>


<script>
    export default{
        data(){
            return {
				URLid:"",//链接id
				rank:"",	//某某星级会员
            }
        },
        mounted(){
        	//加载会员的金额
			var _this = this;
			var str=window.location.href;
			var num=str.lastIndexOf("/")+1;
			var id = str.substring(num);
			_this.URLid = id;
			var info = window.localStorage.data;
			var params = new URLSearchParams();
			params.append('token', info);
			params.append('id', id);
			//获取钱数
			this.$axios({
			    url:"Home/User/shop_member_xq",
				method:"post",
				data:params
			 }).then(function(res){
			  	var datas = res.data;
			  	console.log(datas.data.member_name)
			  	_this.rank = datas.data.member_name
			}).catch(function(err){
				console.log(err)		
			});
        },
        methods:{
        	enter(){
        		this.$router.push("/wShares");	//跳往股红首页
        	}
        }
    }

</script>

<style scoped="scoped">
@import "../css/public.css";
.header_right{
	font-size: 15px;
}
.center{
	width: 75%;
	margin:0px auto;
	text-align: center;
}
.center .ing{
	color: #333333;
	font-size: 18px;
	/*margin-left: 45%;*/
	padding: 15px 0;
}
.center .iconfont{
	/*margin-left: 38%;*/
	font-size: 80px;
	color: #F3961F;
}
.center .tele{
	/*margin-top: 58px;*/
	text-align: center;
	color: #666;
	font-size: 15px;
}
</style>
